package cn.zbh.org.domain;

import cn.zbh.basic.domain.BasicDomain;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.ArrayList;
import java.util.List;
@Data
@NoArgsConstructor
@AllArgsConstructor
public class Department extends BasicDomain {


    private String sn;
    private String name;
    //上级部门路径
    private String dirPath;
    //状态
    private Integer state;
    //部门领导id
    private Long manager_id;

    //Employee对象 领导manager
    private Employee manager;

    //上级部门id
    private Long parent_id;
//上级部门
    private Department parent;
    //子集部门
    @JsonInclude(JsonInclude.Include.NON_EMPTY)//部门树没有最后一集就不显示
    List<Department> children=new ArrayList<>();


}
